<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<body>
<script>
	function modifyPwd(){
		var oldPwd = $("#oldPwd").val();
		var newPwd = $("#newPwd").val();
		var newPwd1 = $("#newPwd1").val();
		if(oldPwd == "" || newPwd == "" || newPwd != newPwd1 ){
			alert("密码输入有误");
			return;
		}else{
			$("#form1").submit();
		}
	}
</script>
<form class="form-inline" id="form1" action="" method="get">
	<p>  旧的密码: <input type="password" value="" name="oldPwd"></input></p>
 		<p>    新的密码: <input type="password" value="" name="newPwd" id="newPwd"></input></p>
 	 	<p>   再输一遍: <input type="password" value="" name="newPwd1" id="newPwd1"></input></p>
 	   <input type="hidden" value="1" name="fromModify" id="fromModify"></input>
  <button type="button" class="btn" onclick="modifyPwd();">修改</button>
</form>
</body>
</html>